@echo off

REM param1:number of windows to open
REM you can edit this program to modify by yourselt.

if "%1"=="2" (
    REM copy modified neox.xml file (or modify neox.xml file by params2 and param3 firstly then copy)
    xcopy yys_2_config\neox.xml Documents /E /Y
    REM loop to start yys clients
    for /L %%i in (1, 1, %1) do (
        start bin\onmyoji.exe
    )
) else if "%1"=="4" (
    xcopy yys_4_config\neox.xml Documents /E /Y
    for /L %%i in (1, 1, %1) do (
        start bin\onmyoji.exe
    )
)else if "%1"=="8" (
    xcopy yys_8_config\neox.xml Documents /E /Y
    for /L %%i in (1, 1, %1) do (
        start bin\onmyoji.exe
    )
)else if "%1"=="12" (
    xcopy yys_12_config\neox.xml Documents /E /Y
    for /L %%i in (1, 1, %1) do (
        start bin\onmyoji.exe
    )
) else (
    REM default copy the original neox.xml file then open one client
    xcopy yys_original_config\neox.xml Documents /E /Y   
    start bin\onmyoji.exe
)



